/*eslint-disable*/
import Recommend from 'components/recommend/recommend';
import Rank from 'components/rank/rank';
import Search from 'components/search/search';
import Singer from 'components/singer/singer';
import SingerDetail from 'components/singer-detail/singer-detail'

export default {
  routes: [
    { // 首页
      name: 'recommend',
      path: '/recommend',
      component: Recommend,
      meta: {
        title: '首页'

      }
    },
    { // rank
      name: 'rank',
      path: '/rank',
      component: Rank,
      meta: {
        title: 'rank'

      }
    },
    { // 搜索页
      name: 'search',
      path: '/search',
      component: Search,
      meta: {
        title: '首页'

      }
    },
    { // 歌手
      name: 'singer',
      path: '/singer',
      component: Singer,
      meta: {
        title: '首页'

      },
      children: [
          {
          path: ':id',
          component: SingerDetail,
          }
      ]
    },
    {
      path: '/',
      redirect: '/recommend'
    }
  ],
  mode: 'history',
  linkActiveClass: 'active' // 当前路由高亮类名
}
